package top.zhangjianyong.tools;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import top.zhangjianyong.tools.utils.SpringContentUtils;

@EnableAsync
@EnableScheduling
@SpringBootApplication
public class ZhangjianyongToolsApplication {

    public static void main(String[] args) {
        //解决druid 日志报错：discard long time none received connection:xxx
        System.setProperty("druid.mysql.usePingMethod", "false");
        ConfigurableApplicationContext run = SpringApplication.run(ZhangjianyongToolsApplication.class, args);
        SpringContentUtils.setApplicationContext(run);
    }

}
